home *** CD-ROM | disk | FTP | other *** search
/ Network Support Library / RoseWare - Network Support Library.iso / manage / nnloop.exe / TESTERR.BAT < prev    next >
DOS Batch File  |  1990-02-05  |  1KB  |  38 lines

  1. @echo off
  2. break on
  3. echo ----------------- COMPARISON ERROR SUSPTECTED ------------------
  4. echo  
  5. echo NOW TESTING FILE %1%2 FOR CORRUPTION...
  6. compare f:\public\%2 %1%2
  7. if errorlevel 1 goto ERRORNOW
  8. echo  
  9. echo THE FILE WAS NOT CORRUPTED--CONTINUE WITH NNLOOP OPERATION
  10. echo BY REBOOTING THIS WORKSTATION.
  11. echo  
  12. goto CONT
  13. :ERRORNOW
  14. echo ------------------ NNLOOP OPERATION SUSPENDED ------------------ >> a:\error.log
  15. echo ERROR FILE %1%2 DOES NOT COMPARE! >> a:\error.log
  16. echo ------------------ NNLOOP OPERATION SUSPENDED ------------------
  17. echo  
  18. echo ERROR FILE %1%2 DOES NOT COMPARE!
  19. echo The file %1 did not compare with the original file 
  20. echo in SYS:PUBLIC.  Please check the drive and directory to determine the
  21. echo nature of the problem.  To end the test now, type CTRL-BREAK or 
  22. echo CTRL-C until the system stops.  The system has placed the programs
  23. echo FC.EXE and DEBUG.COM in the root directory to assist in diagnosing
  24. echo the problem.  The usage for FC is
  25. echo  
  26. echo FC /b F:\PUBLIC\%2 %1%2
  27. echo  
  28. if errorlevel 3 echo One of the files cound not be found.
  29. if errorlevel 3 goto CONT
  30. if errorlevel 2 echo The files are the same size but do not match.
  31. if errorlevel 2 goto CONT
  32. if errorlevel 1 echo The files are not the same size.
  33. :CONT
  34. echo  
  35. pause
  36. pause
  37. pause
  38. pause